﻿using CleanArchitecture.Infrastructure.Entities;
using System.ComponentModel;

namespace CleanArchitecture.Infrastructure.Models.Business.Columns
{
    public partial class ColumnItemModel : BaseEntityModel
    {
        public int LanguageId { get; set; }
        public string LanguageCulture { get; set; }
        public string LanguageCode { get; set; }
        [DisplayName("使用语言")]
        public string LanguageName { get; set; }
        [DisplayName("父级菜单")]
        public int ParentId { get; set; }
        [DisplayName("栏目类型")]
        public EntityEnumConfig.ColumnType ColumnType { get; set; }
        [DisplayName("深度")]
        public int Level { get; set; }
        [DisplayName("MetaKeyWords")]
        public string MetaKeyWords { get; set; }
        [DisplayName("MetaDescription")]
        public string MetaDescription { get; set; }
        [DisplayName("MetaTitle")]
        public string MetaTitle { get; set; }
        [DisplayName("栏目名")]
        public string Name { get; set; }
        [DisplayName("副标题")]
        public string SubTitle { get; set; }
        [DisplayName("是否前端显示")]
        public EntityEnumConfig.YesorNo IsDisplay { get; set; }
        [DisplayName("栏目图标")]
        public string IconImageUrl { get; set; }
        [DisplayName("栏目封面图")]
        public string CoverImageUrl { get; set; }
        [DisplayName("导航地址")]
        public string UrlRoute { get; set; }
        [DisplayName("导航方式")]
        public EntityEnumConfig.UrlTarget UrlTarget { get; set; }
        [DisplayName("单页显示数量")]
        public int PageSize { get; set; }
        [DisplayName("单页可选显示数量")]
        public string PageSizeOptions { get; set; }
        [DisplayName("状态")]
        public EntityEnumConfig.YesorNo IsActive { get; set; }
        [DisplayName("排序")]
        public int DisplayOrder { get; set; }
        /// <summary>
        /// 栏目页面展示模板名称，结合.net core地址重写(UrlRewrite)中间件功能实现
        /// 页面布局展示
        /// </summary>
        [DisplayName("列表布局模板")]
        public string LayoutListTemplate { get; set; }
        [DisplayName("详情页布局模板")]
        public string LayoutDetailTemplate { get; set; }
        /// <summary>
        /// 栏目对应展示页面布局类型： 单页详情展示/列表布局展示
        /// </summary>
        [DisplayName("页面布局类型")]
        public EntityEnumConfig.PageLayoutType LayoutType { get; set; }
    }
}
